package com.wuwei.service;

import com.wuwei.pojo.CommonResult;
import com.wuwei.pojo.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description: FeignService <br>
 * @date: 2021/2/22 21:41 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@FeignClient(value = "nacos-payment",fallback = FeignFallBackService.class)
public interface FeignService {
    @GetMapping("/consumer/feign/{id}")
    public CommonResult<Payment> paymentCommonResult(@PathVariable("id") Long id);
}
